import { useRouter } from 'vue-router'

interface DefaultFunOptons {
  path: string
}

export default function ({ path }: DefaultFunOptons) {
  console.log(222, useRouter());

  const router = useRouter()
  console.log(111, router);

  router.push(path)
}